<?php
if(!defined("PAGE_ENABLE")) exit;
/**
 * @author DeineAgentur UG
 * @copyright 2010
 */

    // PAGE - SYSTEM

/*
    $default_route = new Route('/faq/:katid/:katname/:articlesid/:articlesname');
    $default_route->setMapClass( 'Faq' );
    $default_route->setMapMethod('articles');
    $default_route->addDynamicElement(':katid', '([0-9]+)');
    $default_route->addDynamicElement(':katname', '([0-9a-z-_\.:]+)');
    $default_route->addDynamicElement(':articlesid', '([0-9]+)');
    $default_route->addDynamicElement(':articlesname', '([0-9a-z-_\.:]+)');
    $router->addRoute( 'faq_page3', $default_route );
*/

    $route = new Route( '/' );
    $route->setMapClass( 'PortalHome' );
    $route->setMapMethod( 'Index' );
    $router->addRoute( 'index', $route );

    $route = new Route( '/impressum' );
    $route->setMapClass( 'PortalHome' );
    $route->setMapMethod( 'Impressum' );
    $router->addRoute( 'Impressum', $route );

    $route = new Route( '/datenschutz' );
    $route->setMapClass( 'PortalHome' );
    $route->setMapMethod( 'Datenschutz' );
    $router->addRoute( 'Datenschutz', $route );

    $route = new Route( '/features' );
    $route->setMapClass( 'PortalHome' );
    $route->setMapMethod( 'Datenschutz' );
    $router->addRoute( 'Datenschutz', $route );

    $route = new Route( '/screens' );
    $route->setMapClass( 'PortalHome' );
    $route->setMapMethod( 'Screenshots' );
    $router->addRoute( 'Screenshots', $route );

    $route = new Route( '/agb' );
    $route->setMapClass( 'PortalHome' );
    $route->setMapMethod( 'AGB' );
    $router->addRoute( 'AGB', $route );

    // /products/dildo_bla_bal_29_cm/1021/add
    $route = new Route('/products/:prod_name/:prod_id/:action');
    $route->setMapClass( 'Faq' );
    $route->setMapMethod('articles');
    $route->addDynamicElement(':katid', '([0-9]+)');
    $route->addDynamicElement(':katname', '([0-9a-z-_\.:]+)');
    $route->addDynamicElement(':articlesid', '([0-9]+)');
    $route->addDynamicElement(':articlesname', '([0-9a-z-_\.:]+)');
    $router->addRoute( 'faq_page3', $default_route );

/*
    $route = new Route('/usercenter/register');
    $route->setMapClass( 'UserCenter' );
    $route->setMapMethod( 'Register' );
    $router->addRoute( 'usercenter_register', $route );

    $route = new Route('/ajax/register/:todo/:user');
    $route->setMapClass( 'Ajax' );
    $route->setMapMethod( 'Register' );
    $route->addDynamicElement(':todo', '([a-zA-Z0-9_]+)');
    $route->addDynamicElement(':user', '(.*+)');
    $router->addRoute( 'ajax_register_checkUsername', $route );

    $default_route = new Route('/:method');
    $default_route->setMapClass( 'Home' );
    $default_route->addDynamicElement(':method', ':method');
    $router->addRoute( 'mainsites', $default_route );
*/
?>